package com.nexus.all.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@TableName("nexus_file_batch")
public class FileBatch {

    public static final LambdaQueryWrapper<FileBatch> gw() {
        return new LambdaQueryWrapper<>();
    }


    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 本地文件地址
     */
    @TableField(value = "local_file_uri")
    private String localFileUri;

    /**
     * 远程文件地址
     */
    @TableField(value = "remote_file_uri")
    private String remoteFileUri;

    /**
     * 文件处理状态 0.待处理 1.处理中 2.已完成 3.失败
     */
    @TableField(value = "file_status")
    private Byte fileStatus;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "is_deleted")
    private Boolean isDeleted;


    /**
     * -------------------------------------------------
     * 上面字段由工具自动生成，请在下面添加扩充字段
     * -------------------------------------------------
     */


}